import Vue from 'vue'
import App from '@/App'
import router from './router'

import store from './store/index'

// 移动配置
import 'lib-flexible/flexible.js'

// 字体图标
import 'font-awesome/css/font-awesome.css'

// swiper插件
import 'swiper/css/swiper.min.css'

// mint-ui插件
import MintUI from 'mint-ui'
import 'mint-ui/lib/style.css'

// mui插件 手动
import './assets/MUI/mui/css/mui.min.css'
import './assets/MUI/mui/css/icons-extra.css'

// 时间
import moment from 'moment'
// axios 插件
import axios from 'axios'
import VueAxios from 'vue-axios'

Vue.filter('dateTime', function (dateStr, pattern = 'YYYY-MM-DD HH-mm-ss') {
  return moment(dateStr).format(pattern)
})
Vue.use(VueAxios, axios)

// 安装到vue中
Vue.use(MintUI)

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>',
  store
})
